package cn.lingyangwl.agile.model.module.config.param.sms;

import cn.lingyangwl.agile.model.enums.ConfigKeyEnum;
import cn.lingyangwl.agile.model.module.config.param.SmsParam;
import cn.lingyangwl.framework.data.mate.annotations.FieldSensitive;
import cn.lingyangwl.framework.data.mate.fieldsensitive.enums.StrategyType;
import com.alibaba.fastjson2.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Component;

/**
 * 聚美短信, 一般用于测试
 *
 * @author shenguangyang
 */
@Getter
@Setter
@Component
public class JuMeiSmsParam extends SmsParam<JuMeiSmsParam> {
    @FieldSensitive(StrategyType.RESERVE_4)
    private String appCode;

    @Override
    public JuMeiSmsParam jsonToObject(String json) {
        return JSON.parseObject(json, JuMeiSmsParam.class);
    }

    @Override
    public ConfigKeyEnum configKey() {
        return ConfigKeyEnum.SMS_JUMEI;
    }


}
